include( 'shared.lua' )

function BuyMenu(Activator)
	local DermaPanel = vgui.Create( "DFrame" )
	DermaPanel:SetPos( 50,50 )
	DermaPanel:SetSize( 200, 100 )
	DermaPanel:SetTitle( "Testing Derma Stuff" )
	DermaPanel:SetVisible( true )
	DermaPanel:SetDraggable( true )
	DermaPanel:ShowCloseButton( true )
	DermaPanel:MakePopup()
	
	local DermaButton = vgui.Create( "DButton" )
	DermaButton:SetParent( DermaPanel )
	DermaButton:SetText( "Kill yourself" )
	DermaButton:SetPos( 25, 50 )
	DermaButton:SetSize( 100, 25 )
	DermaButton.DoClick = function ()
		LocalPlayer():SetNWInt("choice", 1)
		RunConsoleCommand("Purchase", "LocalPlayer()")
	end
	local DermaButton2 = vgui.Create( "DButton" )
	DermaButton2:SetParent( DermaPanel )
	DermaButton2:SetText( "God Mode ON!" )
	DermaButton2:SetPos( 25, 75 )
	DermaButton2:SetSize( 100, 25 )
	DermaButton2.DoClick = function ()
		LocalPlayer():SetNWInt("choice", 1)
		RunConsoleCommand("Purchase", "LocalPlayer()")
		RunConsoleCommand("Buddha")
	end
end